//    Copyright (C) 2013  <lugocreation@gmail.com>
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>
package org.jpgolay.wi.util;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;

public class AboutGUI extends JFrame {

    public AboutGUI() {
        setIconImage((new ImageIcon(getClass().getResource("/org/jpgolay/wi/images/logo.gif"))).getImage());
        initComponents();
    }

    private void initComponents() {
        jPanel1 = new JPanel();
        titreL = new JLabel();
        splashL = new JLabel();
        infoP = new JPanel();
        liscenceNumberL = new JLabel();
        liscenceSP = new JScrollPane();
        liscenceTA = new JTextArea();
        okB = new JButton();
        setUndecorated(true);
        jPanel1.setLayout(new BorderLayout());
        jPanel1.setBorder(new LineBorder(new Color(0, 0, 204), 3));
        titreL.setHorizontalAlignment(0);
        titreL.setText("A PROPOS DE WEBIMMO");
        titreL.setBorder(new EtchedBorder());
        jPanel1.add(titreL, "North");
        splashL.setHorizontalAlignment(0);
        splashL.setIcon(new ImageIcon(getClass().getResource("/org/jpgolay/wi/images/splash.jpg")));
        splashL.setBorder(new BevelBorder(1));
        jPanel1.add(splashL, "Center");
        infoP.setLayout(new BorderLayout());
        infoP.setBorder(new EtchedBorder());
        liscenceNumberL.setHorizontalAlignment(0);
        infoP.add(liscenceNumberL, "North");
        liscenceTA.setEditable(false);
        liscenceTA.setLineWrap(true);
        liscenceTA.setRows(4);
        liscenceTA.setText("");
        liscenceTA.setWrapStyleWord(true);
        liscenceSP.setViewportView(liscenceTA);
        infoP.add(liscenceSP, "Center");
        okB.setText("OK");
        infoP.add(okB, "South");
        jPanel1.add(infoP, "South");
        getContentPane().add(jPanel1, "Center");
        pack();
    }

    public JButton getOkB() {
        return okB;
    }

    public void setLiscenceNumberL(String liscence) {
        liscenceNumberL.setText(liscence);
    }
    private JScrollPane liscenceSP;
    private JLabel liscenceNumberL;
    private JTextArea liscenceTA;
    private JLabel splashL;
    private JLabel titreL;
    private JPanel infoP;
    private JPanel jPanel1;
    private JButton okB;
}
